package com.hujun.common.memcached.connect;

import java.io.IOException;

import com.hujun.common.memcached.core.Memcached;

public abstract class MemcachedManager {
	protected String serverIps;
	protected long opTimeout;
	protected int exp = 3600;
	protected Memcached memcached;
	
	public abstract Memcached connect() throws IOException;
	
	public long getOpTimeout() {
		return opTimeout;
	}
	public void setOpTimeout(long opTimeout) {
		this.opTimeout = opTimeout;
	}
	public int getExp() {
		return exp;
	}
	public void setExp(int exp) {
		this.exp = exp;
	}

	public Memcached getMemcached() {
		return memcached;
	}

	public void setMemcached(Memcached memcached) {
		this.memcached = memcached;
	}

	public String getServerIps() {
		return serverIps;
	}

	public void setServerIps(String serverIps) {
		this.serverIps = serverIps;
	}
	
	
}
